import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const riversManger: AppRouteRecordRaw = {
  path: '/riversManger',
  name: 'riversManger',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.riversManger',
    requiresAuth: true,
    icon: 'icon-settings',
    order: 0,
  },
  children: [
    {
      path: 'wmsLayerManger',
      name: 'wmsLayerManger',
      component: () => import('@/views/riversManger/wmsLayerManger/index.vue'),
      meta: {
        locale: 'menu.riversManger.wmsLayerManger',
        icon: 'icon-oxygenDemand',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'waterQualityManger',
      name: 'waterQualityManger',
      component: () =>
        import('@/views/riversManger/waterQualityManger/index.vue'),
      meta: {
        locale: 'menu.riversManger.waterQualityManger',
        icon: 'icon-oxygenDemand',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default riversManger;
